<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/font-awesome.min.css">


<title>Insert title here</title>
</head>
<body>
<!-- 面板 -->
<div class="panel panel-default">
  <!-- 面板头-->
  <div class="panel-heading">
  	<i class="glyphicon glyphicon-th"></i>房屋申请审核
  </div>
    <!-- 面板体-->
  <div class="panel-body">
  	   <form class="form-inline" method="post" action="${pageContext.request.contextPath}/houses/condition" role="form" style="float:left;">
		  <div class="form-group has-feedback">
		    <div class="input-group">
		      <div class="input-group-addon">查询条件</div>
		      <input class="form-control has-success" name="condition" value="${condition}" type="text" placeholder="请输入查询条件">
		    </div>
		  </div>
		  <input type="submit" value="楼盘名称查询">
		  <input type="submit" value="楼盘编号查询">
		  <button type="button" class="btn btn-warning" id="cx"><i class="glyphicon glyphicon-search"></i> 楼盘名称查询</button>
		  <button type="button" class="btn btn-warning"><i class="glyphicon glyphicon-search"></i> 楼盘编号查询</button>
	    </form>   
	    <form method="post">
		<br>
	 	<hr style="clear:both;">
	 	    <!-- 响应式表格 -->
	  		<div class="table-responsive">
				<table class=".table table-striped table-bordered table-hover" style="margin: 20px auto;width:100%">
	            		<thead>
	            		
	            		   <tr >
	            		   		<th>
	            		   			<div class="checkbox">
							<label>
								<input type="checkbox">全选
							</label>
						</div>
	            		   		</th>
	            		   		<th>楼盘编号</th>
	            		   		<th>楼盘名称</th>
	            		   		<th>楼盘地址</th>
	            		   		<th>开发商</th>
	            		   		<th>预售编号</th>
								<th>预售状态</th>
	            		   		
	            		  </tr>
	            		</thead>
	            		<tbody>
	            			<c:forEach	items="${pageInfo.list}" var="houses">
	            			<tr class="info">
	            				<td style="text-align: center;">
	            					<div class="checkbox">
										<label>
											<input type="checkbox" name="userId" value="${houses.hs_id}">
										</label>
								</div>
	            				</td>
	            				<td>
	            					${houses.houses_id}
	            				</td>
	            				<td>
	            					${houses.houses_name}
	            				</td>
	            				<td>
	            					${houses.houses_address}
	            				</td>
	            				<td>
	            					${houses.houses_developers}
	            				</td>
	            				<td>
	            					${houses.houses_licence}
	            				</td>
	            				<td>
	            					${houses.houses_status}
	            				</td>
	            			</tr>
	            		</c:forEach>

	            		</tbody>
	            		  <tfoot>
							     <tr >
								     <td colspan="12" align="center">
										<ul class="pagination">
										<c:if test="${pageInfo.pageNum!=1}">
												<li ><a href="${pageContext.request.contextPath}/houses/next?current=${pageInfo.pageNum-1}">上一页</a></li>
												</c:if>
												<c:forEach items="${pageInfo.navigatepageNums}" var="i">
												<c:if test="${pageInfo.pageNum==i}">
															<li class="active"	>
														</c:if>
														<c:if test="${pageInfo.pageNum!=i}">
															<li>
														</c:if>
													<a href="${pageContext.request.contextPath}/houses/page?current=${i}">${i}</a></li>
												</c:forEach>
												<c:if test="${pageInfo.pageNum!=pageInfo.navigatepageNums[fn:length(pageInfo.navigatepageNums)-1]}">
												<li><a href="${pageContext.request.contextPath}/houses/pre?current=${pageInfo.pageNum+1}">下一页</a></li>
												</c:if>
											 </ul>
									 </td>
								 </tr>
	
				  			</tfoot>
	    			</table>
	    	</div>
	    	
	    </form>
  </div>
</div>
<script type="text/javascript"  src="${pageContext.request.contextPath}/js/jquery-1.12.3.min.js"></script>
<script type="text/javascript"  src="${pageContext.request.contextPath}/js/bootstrap.min.js"></script>
</body>
</html>